<%--
  Created by IntelliJ IDEA.
  User: chenwb
  Date: 2019/12/18
  Time: 20:10
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>ParamTest.jsp</title>
</head>
<body>
<form>
    <input type="text" name="name"/>
    <button type="submit">提交后能获取到内容</button>
</form>
<%
    request.setCharacterEncoding("UTF-8");
    String name = request.getParameter("name");
    request.setAttribute("name", new String(name.getBytes("ISO-8859-1"), "UTF-8"));
%>
<div>${name}</div>
<div>${initParam.contextConfigLocation}</div>

</body>
</html>
